import request from '@/utils/request'

// 查询完残程度列表
export function listCompleteness(query) {
  return request({
    url: '/system/completeness/list',
    method: 'get',
    params: query
  })
}

// 查询完残程度详细
export function getCompleteness(id) {
  return request({
    url: '/system/completeness/' + id,
    method: 'get'
  })
}

// 新增完残程度
export function addCompleteness(data) {
  return request({
    url: '/system/completeness',
    method: 'post',
    data: data
  })
}

// 修改完残程度
export function updateCompleteness(data) {
  return request({
    url: '/system/completeness',
    method: 'put',
    data: data
  })
}

// 删除完残程度
export function delCompleteness(id) {
  return request({
    url: '/system/completeness/' + id,
    method: 'delete'
  })
}
